package com.xiaozhengkeji.starbootserver.base.services;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xiaozhengkeji.starbootserver.base.entitys.PermissionTableEntity;
import com.xiaozhengkeji.starbootserver.base.mapper.PermissionTableEntityMapper;import java.util.List;

@Service
public class PermissionTableEntityService {

    @Resource
    private PermissionTableEntityMapper permissionTableEntityMapper;


    public int deleteByPrimaryKey(Integer pid) {
        return permissionTableEntityMapper.deleteByPrimaryKey(pid);
    }


    public int insert(PermissionTableEntity record) {
        return permissionTableEntityMapper.insert(record);
    }


    public int insertSelective(PermissionTableEntity record) {
        return permissionTableEntityMapper.insertSelective(record);
    }


    public PermissionTableEntity selectByPrimaryKey(Integer pid) {
        return permissionTableEntityMapper.selectByPrimaryKey(pid);
    }


    public int updateByPrimaryKeySelective(PermissionTableEntity record) {
        return permissionTableEntityMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(PermissionTableEntity record) {
        return permissionTableEntityMapper.updateByPrimaryKey(record);
    }

    public List<PermissionTableEntity> queryByAll(PermissionTableEntity permissionTableEntity) {
        return permissionTableEntityMapper.queryByAll(permissionTableEntity);
    }
}

